package com.cms.bs.app.controller;

import com.cms.bs.app.service.IAppService;
import com.cms.bs.config.rs.RS;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by jiang on 2016-09-28.
 */
@Controller
public class AppController {

    @Autowired
    private IAppService appService;

    @RequestMapping(value = "/gen", method = RequestMethod.POST)
    @ResponseBody
    public RS gen(@RequestBody String json){
        return appService.gen(json);
    }
}
